package com.example.demo.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2021年06⽉11⽇<br/>
 * @version：v1.0.0<br>
 */
@Async
@Service
@Slf4j
public class ShutDownService {

    public void shutdown() {
        try {
            Thread.sleep(30 * 1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        log.info("任务执行完成....");
    }
}
